package com.pomr.model.menu;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 类名称： EquipmentKind
 * 创建人： Administrator
 * 创建时间：2018年5月31日 下午12:53:51
 * 类描述：设备种类
 */
@Entity
@Table(name="menu_equipment")
public class EquipmentKind {
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "native")
    @GenericGenerator(name = "native", strategy = "native")//AUTO 在mysql中需要指定使用本地策略生成主键值
	private int id;
	@Column(name="name",length=50,nullable=false)
	private String name;

}
